﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MathLab;
using MathLab.Messaging;
using MathLab.Interpretation;
using MathLab.Parsing;
using MathLab.Utils;

namespace MathLab
{
  class Program
  {
    static void Main(string[] args)
    {
      Interpreter interpreter = new Interpreter();

      while (true)
      {
        Console.Write(Literals.COMMAND_PROMPT);

        string inputLine = Console.ReadLine();

        CommandsCollector commandsCollector = new CommandsCollector();
        List<string> commands = commandsCollector.createCommandsList(inputLine);
        
        interpreter.process(commands);
      }
    }
  }
}
